﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMS.Model;

namespace WMS.Repository.IRepository
{
    public interface IUserRepository
    {
        Task<PageResult<UserModel>> GetUserPagedListAsync(UserQueryRequest request);
        Task<UserModel> GetAccountAsync(string account);
        Task<bool> AddUserAsync(UserModel userModel);
        Task<UserModel> GetEmailAsync(string email);
        Task<List<UserModel>> QueryAsync();
        Task<List<UserModel>> GetUserDropdownBoxAsync();
    }
    /// <summary>
    /// 用户查询请求
    /// </summary>
    public class UserQueryRequest : PageRequest
    {
        public string? Account { get; set; }
        public string? Realname { get; set; }
        public string? Email { get; set; }
        public string? Phone { get; set; }
        public byte? Status { get; set; }
    }
}
